<!DOCTYPE html>
<!-- saved from url=(0054)https://getbootstrap.com/docs/4.2/examples/dashboard/# -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Jekyll v3.8.5">
    <title>佛大叮当个人管理</title>


    <!-- Bootstrap core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet">


    <style>
        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
        }
    </style>
    <!-- Custom styles for this template -->
    <link href="/css/dashboard.css" rel="stylesheet">
    <style type="text/css">/* Chart.js */
    @-webkit-keyframes chartjs-render-animation {
        from {
            opacity: 0.99
        }
        to {
            opacity: 1
        }
    }

    @keyframes chartjs-render-animation {
        from {
            opacity: 0.99
        }
        to {
            opacity: 1
        }
    }

    .chartjs-render-monitor {
        -webkit-animation: chartjs-render-animation 0.001s;
        animation: chartjs-render-animation 0.001s;
    }</style>
</head>
<body>

<nav class="navbar navbar-dark fixed-top bg-primary flex-md-nowrap p-0 shadow">
    <a class="navbar-brand col-sm-3 col-md-2 mr-0"
       th:href="@{/index}">佛大叮当</a>
    <ul class="navbar-nav px-3">
        <li class="nav-item text-nowrap">
            <a class="nav-link" th:href="@{logout}">Sign out</a>
        </li>
    </ul>
</nav>

<div class="container-fluid">
    <div class="row">
<!--        <div id="head" th:include="common/template :: user_manager_head"></div>-->

        <nav class="col-md-2 d-none d-md-block bg-light sideb ar">
            <div class="sidebar-sticky">
                <ul class="nav flex-column">
                    <li class="nav-item">
                        <a class="nav-link"
                           href="https://getbootstrap.com/docs/4.2/examples/dashboard/#">
                            闲置管理 <span class="sr-only">(current)</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active  text-dark" th:href="@{/user/product-manage}">
                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
                                 viewBox="0 0 24 24" fill="none" stroke="currentColor"
                                 stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
                                 class="feather feather-home">
                                <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
                                <polyline points="9 22 9 12 15 12 15 22"></polyline>
                            </svg>
                            闲置管理 <span class="sr-only">(current)</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark" th:href="@{/user/user-manage}">
                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
                                 viewBox="0 0 24 24" fill="none" stroke="currentColor"
                                 stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
                                 class="feather feather-file">
                                <path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path>
                                <polyline points="13 2 13 9 20 9"></polyline>
                            </svg>
                            个人管理
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark"
                           th:href="@{/user/comment-manage}">
                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
                                 viewBox="0 0 24 24" fill="none" stroke="currentColor"
                                 stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
                                 class="feather feather-shopping-cart">
                                <circle cx="9" cy="21" r="1"></circle>
                                <circle cx="20" cy="21" r="1"></circle>
                                <path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>
                            </svg>
                            留言管理
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link  text-dark"
                           th:href="@{/user/announce-manage}">
                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
                                 viewBox="0 0 24 24" fill="none" stroke="currentColor"
                                 stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
                                 class="feather feather-users">
                                <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
                                <circle cx="9" cy="7" r="4"></circle>
                                <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
                                <path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
                            </svg>
                            公告
                        </a>
                    </li>
                </ul>
            </div>
        </nav>


        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
            <div class="chartjs-size-monitor"
                 style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; overflow: hidden; pointer-events: none; visibility: hidden; z-index: -1;">
                <div class="chartjs-size-monitor-expand"
                     style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;">
                    <div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div>
                </div>
                <div class="chartjs-size-monitor-shrink"
                     style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;">
                    <div style="position:absolute;width:200%;height:200%;left:0; top:0"></div>
                </div>
            </div>
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
                <h1 class="h2">闲置管理</h1>
                <div class="btn-toolbar mb-2 mb-md-0">
                    <div class="btn-group mr-2">
                        <button type="button"
                                class="btn btn-lg btn-outline-primary">发布</button>
                    </div>
                </div>
            </div>

            <div class="container-fluid">
                <!-- Row -->
                <div class="row table-responsive">
                    <table class="table mb-4 responsive-table table-bordered bg-white">
                        <thead class="thead-light2">
                        <tr>
                            <th scope="col" width="1">商品图片</th>
                            <th scope="col" class="resizeable">名称</th>
                            <th scope="col" class="resizeable">价格</th>
                            <th scope="col" class="resizeable">类型</th>
                            <th scope="col" class="resizeable">简介</th>
                            <th scope="col" class="resizeable">发布日期</th>
                            <th scope="col" width="1">操作</th>
                        </tr>
                        </thead>
                        <tbody th:each="product : ${page}">
                        <tr>

                            <td class="align-middle" th:if="${product.imgs.size()>0}"><img th:src="@{/}+${product.imgs.get(0)}" width="100"></td>
                            <td class="align-middle" th:if="${product.imgs.size()==0}">无</td>
                            <td class="align-middle"  th:text="${product.title}"></td>
                            <td class="align-middle" th:text="${product.price}"></td>
                            <td class="align-middle" th:text="${product.type}"></td>
                            <td class="align-middle" th:text="${product.content}"></td>
                            <td class="align-middle" th:text="${product.createTime}"></td>
                            <td class="align-middle text-md-center dropdown " data-label="Actions">
                                <button type="button" class="btn btn-warning btn-sm">Warning</button>
                                <button type="button" class="btn btn-danger btn-sm">Danger</button>
<!--                                <a class="btn btn-outline-primary dropdown-toggle" href="#"-->
<!--                                   role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">-->
<!--                                    操作-->
<!--                                </a>-->
<!--                                <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">-->
<!--                                    <a class="dropdown-item"-->
<!--                                       th:href="@{/product/update/{id}(id=${product.id})}">修改</a>-->
<!--                                    <a class="dropdown-item"-->
<!--                                       th:href="@{/product/delete/{id}(id=${product.id})}">删除</a>-->
<!--                                </div>-->
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="shop-page-toolbars shop-page-toolbars-bottom" th:if="${page.totalPages}>1">
                        <ul class="shop-toolbar-pagination">
                            <li class="active"><a href="#" th:href="@{product-manage(page=${page.number}-1)}"
                                                  th:unless="${page.first}">上一页</a></li>
                            <li><a href="#" th:href="@{product-manage(page=${page.number}+1)}"
                                   th:unless="${page.last}">下一页</a></li>
                        </ul>

                    </div>

                </div>
            </div>
        </main>
    </div>
</div>


<!----></body>
<script src="/js/jquery-3.4.1.slim.min.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script>
<script src="/js/feather.min.js"></script>
<script src="/js/Chart.min.js"></script>
<script src="/js/dashboard.js"></script>



</html>